package com.bh.extend.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 客户用户对象 jc_customer_user
 *
 * @author slx
 * @date 2023-04-03
 */
@TableName("jc_customer_user")
@Data
public class JcCustomerUser {
    

    /**
     * 客户ID
     */
    @Dict(dictTable = "jc_customer", dictLabel = "name", dictValue = "id")
    private Long customerId;
    private String customerIdDtLabel;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("customerId", getCustomerId())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}
